package impl;

import graphModel.GraphInterfaces.Edge;


public class EdgeImpl implements Edge {
	public String AEnd;
	public String BEnd;
	private double weight;
	private int flow;
	private int capacity;

	public EdgeImpl(String AEnd,String BEnd,double weight){
		this.AEnd = AEnd;
		this.BEnd = BEnd;
		this.weight = weight;
	}


	@Override
	public void setWeight(double weight) {
		this.weight=weight;
	}

	@Override
	public String getAEnd() {
		return AEnd;
	}

	@Override
	public String getBEnd() {
		return BEnd;
	}
	
	public double getWeight(){
		return this.weight;
	}


	public int getFlow() {
		return flow;
	}


	public void setFlow(int flow) {
		this.flow = flow;
	}


	public int getCapacity() {
		return capacity;
	}


	public void setCapacity(int capacity) {
		this.capacity = capacity;
	}


}
